﻿<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/GuestView.master" AutoEventWireup="true"
    CodeBehind="Default.aspx.cs" Inherits="BestBuy._Default" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <div class="left-side-bar bs-docs-sidebar">
        <ul class="nav nav-list bs-docs-sidenav" id="ulParent">
            <li class="active" style="text-align: center;"><a>Category</a></li>
            <asp:GridView ID="gvCategories" CssClass="gridviewCatalogy" runat="server" AutoGenerateColumns="False"
                GridLines="None" Width="90%">
                <Columns>
                    <asp:TemplateField>
                        <ItemTemplate>
                            <a href='PageGuest/ListOfCategoryLevel1.aspx?pid=<%#Eval("IDDanhMuc")%>'>
                                <li><i class="icon-chevron-right"></i>
                                    <%#Eval("TenDanhMuc")%>
                                </li>
                            </a>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
        </ul>
    </div>
    <div class="main-content-home">
        <div class="duongvien">
            <table id="gradient-style" width="100%" border="0">
                <thead>
                </thead>
                <tbody>
                    <tr>
                        <td width="50%">
                            <div style="margin:10px 5px 0px 0px;"><span class="trangchu_h1">Latest Buy Offers</span> <a id="linkBuyerCatalogy" href="~/PageGuest/bListCategory.aspx"
                                runat="Server" class="float_right">View more >></a></div>
                            <marquee id="mqBuyer" onmouseover='this.stop();' onmouseout='this.start();' behavior='scroll'
                                direction='up' scrollamount="2">
                                <ol runat="Server" id='ol_buyeroffer'> 
                                </ol>
                            </marquee>
                        </td>
                        <td width="50%">
                            <div style="margin:10px 5px 0px 0px;"> <span class="trangchu_h1">Latest Seller Offers</span> <a id="linkSellerCatalogy" href="~/PageGuest/sListCategory.aspx"
                                runat="Server" class="float_right">View more >></a> </div>
                            <marquee id="mqSeller" onmouseover='this.stop();' onmouseout='this.start();' behavior='scroll'
                                direction='down' scrollamount="2">
                                <ol runat="Server" id='ol_selleroffer'>
                                </ol>
                            </marquee>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
        <br />
        <div class="duongvien">
            <h1 class="trangchu_h1">
                Latest Products</h1>
            <asp:DataList ID="dlLatestProducts" runat="server" RepeatColumns="5">
            <ItemTemplate>
                <div class="productItem">
                    <div>
                        <a href='PageGuest/ProductDetail.aspx?pid=<%#Eval("IDSanPham") %>' ><img runat="server" class="img_product" src='<%# CheckHinhAnh(Eval("HinhAnh")) %>' height="100" width="150" /></a>
                    </div>
                    <div class="magin_tensanpham">
                        <span>
                            <a href='PageGuest/ProductDetail.aspx?pid=<%#Eval("IDSanPham") %>'><%# Eval("TenSanPham") %></a>
                        </span>
                    </div>    
                    
               </div>
            </ItemTemplate>
        </asp:DataList>
        </div>
        <br />
        <div class="duongvien">
            <h1 class="trangchu_h1">
                Featured Products</h1>
                <asp:DataList ID="dlFeaturedProducts" runat="server" RepeatColumns="5">
            <ItemTemplate>
                <div class="productItem">
                    <div>
                        <a href='PageGuest/ProductDetail.aspx?pid=<%#Eval("IDSanPham") %>' ><img id="Img1" runat="server" class="img_product" src='<%# CheckHinhAnh(Eval("HinhAnh")) %>' height="130" width="150" /></a>
                    </div>
                    <div class="magin_tensanpham">
                        <span>
                            <a href='PageGuest/ProductDetail.aspx?pid=<%#Eval("IDSanPham") %>'><%# Eval("TenSanPham") %></a>
                        </span>
                    </div>    
                    
               </div>
            </ItemTemplate>
        </asp:DataList>
        </div>
        <br />
        <div class="duongvien">
            <h1 class="trangchu_h1">
                Featured Categories</h1>
            <table id="Table1" width="100%" border="0">
                <thead>
                </thead>
                <tbody>
                    <tr>
                        <td width="50%">
                            <marquee id="mqCatalogy1" onmouseover='this.stop();' onmouseout='this.start();' behavior='scroll'
                                direction='up' scrollamount="2">
                                <ol runat="Server" id='ol_Catalogy1'>
                                </ol>
                            </marquee>
                        </td>
                        <td width="50%">
                            <marquee id="mqCatalogy2" onmouseover='this.stop();' onmouseout='this.start();' behavior='scroll'
                                direction='down' scrollamount="2">
                                <ol runat="Server" id='ol_Catalogy2'>
                                </ol>
                            </marquee>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
</asp:Content>
